home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / graphics / cup123.zip / CUP1.POV next >
Text File  |  1992-07-12  |  6KB  |  224 lines

  1. // CUP1.POV : PoV 1.0 data file <c> Truman Brown 1992
  2. // Test file for future cup images
  3.  
  4. #include "colors.inc"
  5. #include "shapes.inc"
  6.  
  7. camera {
  8.    location  <  0.0     13.0  -25.5  >
  9.    direction <  0.0      0.0    2.0  >
  10.    up        <  0.0      1.0    0.0  >
  11.    right     <  1.333333 0.0    0.0  >
  12.    look_at   <  0.0      4.7    0.0  >
  13. }
  14.  
  15. object { light_source { < 50  61 -30> color red 0.3 green 0.3 blue 0.3 } }
  16. object { light_source { <-20  41 -20> color red 0.2 green 0.2 blue 0.2 } }
  17. object { light_source { <-10  11 -20> color red 0.3 green 0.2 blue 0.3 } }
  18. object { light_source { <-50  31 -70> color red 0.4 green 0.4 blue 0.4 } }
  19. object { light_source { < 10  21 -40> color red 0.1 green 0.1 blue 0.1 } }
  20.  
  21. #declare Dot =
  22.     quadric {
  23.        < 1.0  1.0  1.0>
  24.        < 0.0  0.0  0.0>
  25.        < 0.0  0.0  0.0>
  26.         -1.0
  27.     }
  28.  
  29. #declare Connector_1 =
  30.    object {
  31.       quadric {
  32.          < 0.0  1.0  1.0>
  33.          < 0.0  0.0  0.0>
  34.          < 0.0  0.0  0.0>
  35.           -1.0
  36.       }
  37.       clipped_by {
  38.          plane { < 1.0  0.0  0.0> 1.0 }
  39.          plane { <-1.0  0.0  0.0> 0.0 }
  40.       }
  41.    }
  42.  
  43. #declare Connector_2 =
  44.    quadric {
  45.       < 1.0 -1.0  1.0>
  46.       < 0.0  0.0  0.0>
  47.       < 0.0  0.0  0.0>
  48.         0.0
  49.       rotate < 0.0  0.0  90.0>
  50.    }
  51.  
  52. #declare transx1 = 0
  53. #declare transy1 = -35.2
  54. #declare transz1 = 0
  55.  
  56. #declare transx2 = 0
  57. #declare transy2 = 0
  58. #declare transz2 = 0
  59.  
  60. #declare scalex1 = .35
  61. #declare scaley1 = .50
  62. #declare scalez1 = 1
  63. #declare cuptexture =
  64.    texture {
  65.       color      Brown
  66.       ambient    0.1
  67.       diffuse    0.66
  68.       phong      1
  69.       phong_size 100
  70.       reflection 0.5
  71.       brilliance 3
  72.    }
  73.  
  74. #declare ringtexture =
  75.    texture {
  76.       color Sienna
  77.       ambient 0.2
  78.       diffuse 0.7
  79.       phong    0.91
  80.       phong_size  100
  81.       reflection 0.4
  82.       brilliance 3
  83.    }
  84.  
  85. #declare lip_ring =
  86.     quartic {
  87.        < 1 0 0 0 2 0 0 2 0 -4.0725
  88.          0 0 0 0 0 0 0 0 0 0
  89.          1 0 0 2 0 4.05 0 0 0 0
  90.          1 0 -4.0725 0 4.100625 >
  91.     }
  92.  
  93. #declare Dotx =
  94.    quadric {
  95.       Dot
  96.       scale < 0.15 0.15 0.30 >
  97.    }
  98.  
  99. #declare cup =
  100.    composite {
  101.       composite { // handle
  102.          object {
  103.             union {
  104.                quadric { Dotx translate <-1.5 2.5  0.0 > }
  105.                quadric { Dotx translate <-2.5 2.5  0.0 > }
  106.                quadric { Dotx translate <-2.5 1.25 0.0 > }
  107.                quadric { Dotx translate <-1.5 0.5  0.0 > }
  108.             }
  109.             texture { cuptexture }
  110.          }
  111.          object {
  112.             Connector_1
  113.             scale     < 1.0 0.15 0.3 >
  114.             rotate    < 0.0 -180.0 0.0>
  115.             translate <-1.5 2.5 0.0>
  116.             texture { cuptexture }
  117.          }
  118.          object {
  119.             Connector_1
  120.             scale     < 1.25 0.15 0.3 >
  121.             rotate    < 0.0  0.0 -90.0>
  122.             translate <-2.5  2.5   0.0>
  123.             texture { cuptexture }
  124.          }
  125.          object {
  126.             Connector_1
  127.             scale     < 1.25 0.15 0.3>
  128.             rotate    < 0.0  0.0 -36.869898>
  129.             translate <-2.5  1.25 0.0>
  130.             texture { cuptexture }
  131.          }
  132.          bounded_by {
  133.             sphere { <-2 1.5 0> 1.4 }
  134.          }
  135.       }
  136.       object { // cup's body
  137.          union {
  138.             intersection {
  139.                quadric { Cylinder_Y scale <1.50 1 1.50> texture { cuptexture } }
  140.                quadric { Cylinder_Y scale <1.35 1 1.35> inverse texture { cuptexture } }
  141.                plane { <0  1 0> 3.5 }
  142.                plane { <0 -1 0> 0   }
  143.             }
  144.             intersection {
  145.                quadric { Cylinder_Y scale <1.425 1 1.425> texture { cuptexture } }
  146.                plane { <0  1 0> 0.075 }
  147.                plane { <0 -1 0> 0.075 }
  148.             }
  149.             quartic { lip_ring translate <0 3.5 0> texture { ringtexture } }
  150.             quartic { lip_ring                     texture { cuptexture  } }
  151.          }
  152.          bounded_by {
  153.             box {
  154.                <-1.6 -0.1 -1.6>
  155.                < 1.6  3.8  1.6>
  156.             }
  157.          }
  158.          translate <0 0.075 0>
  159.       }
  160.    }
  161.  
  162. #declare hingepart =
  163.    intersection {
  164.       quadric {
  165.          Cylinder_Y
  166.          scale <.27 1 .27>
  167.          translate <-4.27 0 0>
  168.       }
  169.       plane { <0  1 0 > .95 }
  170.       plane { <0 -1 0 > 0 }
  171.    }
  172.  
  173. #declare wallbox =
  174.    object {
  175.       union {
  176.          box {
  177.             <-4 0.25 0>
  178.             < 4 7.75 4>
  179.          }
  180.          box {
  181.             <-4  0 -.25>
  182.             < 4.25 8 -.02>
  183.          }
  184.          intersection {hingepart translate <0 0 0> }
  185.          intersection {hingepart translate <0 1 0> }
  186.          intersection {hingepart translate <0 2 0> }
  187.          intersection {hingepart translate <0 3 0> }
  188.          intersection {hingepart translate <0 4 0> }
  189.          intersection {hingepart translate <0 5 0> }
  190.          intersection {hingepart translate <0 6 0> }
  191.          intersection {hingepart translate <0 7 0> }
  192.          intersection {
  193.             intersection {
  194.                quadric { Cylinder_X }
  195.                quadric { Cylinder_X scale <1 0.9 0.9> inverse }
  196.             }
  197.             plane { <1 0 0> 3.25 }
  198.             plane { <1 0 0> 2.75 inverse }
  199.             plane { <0 -1 0> 0 }
  200.             plane { <0 0 1> 0 }
  201.             translate <0 6 -.25>
  202.          }
  203.       }
  204.       texture {
  205.          color DimGray
  206.          ambient 0.4
  207.          diffuse 0.7
  208.          metallic
  209.          brilliance 1.5
  210.          phong 1.0
  211.          phong_size 100
  212.          reflection 0.15
  213.       }
  214.    }
  215.  
  216. object {
  217.    wallbox
  218.    translate <-2 0 7>
  219. }
  220. composite {
  221.    cup
  222.    rotate <0 -55 0>
  223. }
  224.